<template>
  <!-- 体育场节点 -->
  <div class="stadium-node">
    <slot name="top" />
    <div class="node-content">
      {{ data.label }}
    </div>
    <slot name="bottom" />
  </div>
</template>

<script setup lang="ts">
interface Props {
  id: string
  data: {
    label: string
    nodeType: string
  }
}

defineProps<Props>()
</script>

<style scoped>
.stadium-node {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 80px;
  min-height: 40px;
}

.node-content {
  text-align: center;
  font-size: 12px;
  color: #000;
  font-weight: 500;
}
</style>
